<!DOCTYPE html>
<html>
	<head>
		<meta charset="<?php echo $cfg_soft_lang; ?>">
		<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
		<title>密码帮手-找回密码第一步</title>
		<script src="<?php echo $cfg_cmsurl; ?>/static/web/js/jquery.min.js"></script>
		<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/bootstrap.min.css">
		<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/font/css/font-awesome.min.css">
		<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/style.css">
		<link rel="stylesheet" href="<?php echo $cfg_cmsurl; ?>/static/web/css/member.css">
		<script>
			function changeAuthCode() {
				var num = new Date().getTime();
				var rand = Math.round(Math.random() * 10000);
				num = num + rand;
				$('#ver_code').css('visibility', 'visible');
				if ($("#vdimgck")[0]) {
					$("#vdimgck")[0].src = "../apps/vdimgck.php?tag=" + num;
				}
				return false;
			}
			function hideVc() {
				$('#ver_code').css('visibility', 'hidden');
			}
			$(document).ready(function() {
				$("#vdcode").focus(function() {
					var leftpos = $("#vdcode").position().left;
					$('#ver_code').css('left', leftpos + 'px');
					$('#ver_code').css('visibility', 'visible');
				});
				$("input[type='password']").click(function() {
					hideVc()
				});
				$("#txtUsername").click(function() {
					hideVc()
				});
				$("input[type='radio']").focus(function() {
					hideVc()
				});
			})
		</script>
	</head>
	<body>
		<?php include(DEDEMEMBER."/templets/top.htm"); ?>
		<?php include(DEDEMEMBER."/templets/header.htm"); ?>
		<main class="">
			<div class="container">
				<div class="main mb-3">
					<p>找回密码第一步<em><a href="index_do.php?fmdo=user&dopost=regnew">还没注册</a></em></p>
					<form name="form1" method="POST" action="<?php echo $cfg_memberurl;?>/resetpassword.php">
						<input type="hidden" name="dopost" value="getpwd">
						<input type="hidden" name="gourl" value="<?php if(!empty($gourl)) echo $gourl;?>">
						<div class="form-group">
							<div class="input-group">
								<input placeholder="用户名" name="userid" type="text" class="form-control" id="txtUsername">
							</div>
						</div>
						<div class="form-group">
							<div class="input-group">
								<input placeholder="邮箱" name="mail" type="text" class="form-control" id="txtMail">
							</div>
						</div>
						<div class="form-group">
							<div class="input-group">
								<input name="vdcode" placeholder="请输入验证码" type="text" class="form-control" id="iptValidate" style="text-transform:uppercase">
								<img src="<?php echo $cfg_cmsurl; ?>/apps/vdimgck.php" id="validateimg" onclick="this.src='<?php echo $cfg_cmsurl; ?>/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码" alt="验证码" style="cursor:pointer">
							</div>
						</div>
						<div class="form-group">
							<div class="input-group">
								<select name="type" class="form-control">
									<option value="1" selected>通过邮件取回</option>
									<option value="2">通过安全问题取回</option>
								</select>
							</div>
						</div>
						<button type="submit" class="btn btn-success btnLogin btn-sm">下一步</button>
					</form>
				</div>
			</div>
		</main>
		<?php include(DEDEMEMBER."/templets/footer.htm"); ?>
	</body>
</html>